home *** CD-ROM | disk | FTP | other *** search
/ Business Shareware / Business Shareware.iso / start / gfxapps / pbmpl91d / pbmplus / man / ppmtoxpm.man < prev    next >
Text File  |  1993-01-08  |  2KB  |  67 lines

  1.  
  2.  
  3. ppmtoxpm(1)                Unix Programmer's Manual                ppmtoxpm(1)
  4.  
  5.  
  6. NAME
  7.      ppmtoxpm - convert a portable pixmap into an X11 pixmap
  8.  
  9. SYNOPSIS
  10.      ppmtoxpm [-name xpmname] [ppmfile]
  11.                      -------   -------
  12.  
  13. DESCRIPTION
  14.      Reads a portable pixmap as input.  Produces X11 pixmap (XPM) as output.
  15.  
  16.      If the program was compiled with an rgb database  specified,  and  a  RGB
  17.      value  from the ppm input matches a RGB value from the database, then the
  18.      corresponding color name mnemonic is printed in the XPM's  colormap.   If
  19.      no  rgb  database was compiled in, or if the RGB values don't match, then
  20.      the color  will  be  printed  with  the  #RGB,  #RRGGBB,  #RRRGGGBBB,  or
  21.      #RRRRGGGGBBBB hexadecimal format.
  22.  
  23. OPTIONS
  24.  
  25.      -name
  26.           Allows you to specify the prefix string  which  is  printed  in  the
  27.           resulting  XPM  output.   If  not  specified,  will  default  to the
  28.           filename (without extension) of the ppmfile argument.  If  -name  is
  29.           not  specified  and  no ppmfile is specified (i.e. piped input), the
  30.           prefix string will default to the string "noname".
  31.  
  32.      All flags can be abbreviated to their shortest unique prefix.
  33.  
  34. EXAMPLE
  35.      To convert the file "dot" (found in /usr/include/X11/bitmaps),  from  xbm
  36.      to xpm one could specify
  37.  
  38.           xbmtopbm dot | ppmtoxpm -name dot
  39.  
  40. BUGS
  41.      An option to match the closest (rather than exact)  color  name  mnemonic
  42.      from the rgb text would be a desirable enhancement.
  43.  
  44.      Truncation of the least significant bits of a RGB  value  may  result  in
  45.      nonexact matches when performing color name mnemonic lookups.
  46.  
  47. SEE ALSO
  48.      xpmtoppm(1), ppm(5)
  49.  
  50. AUTHOR
  51.      Copyright (C) 1990 by Mark W. Snitily.
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.                                 26 June 1990                                 1
  66.  
  67.